package com.aaa.controller.tables;

import com.aaa.service.impl.PublisherServiceImpl;
import com.wsc.entity.Publisher;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("publisher")
public class PublisherController {
    @Resource
    PublisherServiceImpl publisherService;
    @RequestMapping("select")
    public Object select(){
        return publisherService.select();
    }
    @RequestMapping("insert")
    public Integer insert(Publisher publisher){
        return publisherService.insert(publisher);
    }
    @RequestMapping("delete")
    public Integer delete(Integer id){
        return publisherService.delete(id);
    }
    @RequestMapping("update")
    public Integer update(Publisher publisher){
        return publisherService.update(publisher);
    }
}
